package com.thoughtworks.wechatmoments.logic.moments;

import com.thoughtworks.wechatmoments.base.BaseApplication;
import com.thoughtworks.wechatmoments.entity.TweetsEntity;
import com.thoughtworks.wechatmoments.entity.UserInfoEntity;

import java.util.List;

import io.reactivex.Observable;

/**
 * Monmentsd的Model
 *
 * @author guowenlong
 * 创建时间:2018-12-06-23:58
 */
public class MomentsModel implements MomentsContract.Model {

    @Override
    public Observable<UserInfoEntity> getUserInfo() {
        return BaseApplication.getApi().getUserInfo();
    }

    @Override
    public Observable<List<TweetsEntity>> getUserTweetsOneTime() {
        return BaseApplication.getApi().getUserTweets();
    }
}